
raw=input()

ret=[]
i=0
while i<len(raw):
    if raw[i]>='0' and raw[i]<='9':
        temp=0
        while i<len(raw) and raw[i]>="0" and raw[i]<='9':
            temp=temp*10+int(raw[i])
            i+=1
        ret.append(temp)
    i+=1

ret.sort()
for i in ret:
    print(i)
        
        